    <div class="message">
      {*if $message} {$message} {/if*}    
    </div>
  
    <div class="add-box">
      <form id="add_new_form" name="add_new_form" method="post" enctype="multipart/form-data" action="{$add_new_form_action}" style="margin:0;">
        <div style="clear:both;">  <span class="label">Заголовок</span>   <input type="text" name="new[title]" /> </div>
        <div style="clear:both;">  <span class="label">Текст</span>   <textarea name="new[text]"></textarea> </div>
        <div style="clear:both;">  <span class="label">Картинка</span> <input type="file" name="photo" style="height: 27px;" />  </div>
        <div style="clear:both;">  <span class="label">Подпись</span>   <input type="text" name="new[photo_name]" /> </div>
        <div style="clear:both;">  <span class="label">Видео</span>   <textarea name="new[video]"></textarea> </div>
        
          <input type="hidden" name="new[year]" value="{$year}" /> 
          
          <div class="pro_btn-indent">
            <span>
            <button>Загрузить</button>
            </span>
          </div>  
      </form>
    </div>  
    
    
   
    {if $news} 
    <div class="add-box" style="height:auto;">
     <form name="update_teachers_form" method="post" action="{$update_news_form_action}" enctype="multipart/form-data"> 
      <button>Сохранить</button>
      <table class="edit  ">
        <tbody>
          <tr>
            <td>Картинка / Подпись
            </td> 
            <td> Дата / Заголовок / <br/> Seo link
            </td>
            <td>Текст / <br/>HTML для вставки видео 
            </td> 
          </tr>
          
          {foreach from=$news item=new}
          <tr>
            <td>  <div style="width:150px; margin:0 0 25px 0;"> <input type="checkbox" vale="1" name="news[{$new.news_id}][delete]" /> <span>Удaлить</span>                  </div>
            </td>
            <td>                    
                  <input type="text" name="news[{$new.news_id}][date_added]" value="{$new.date_added}" /> <br />
                  <input type="text" name="news[{$new.news_id}][title]" value="{$new.title}" /> 
            </td>
            <td> <textarea name="news[{$new.news_id}][text]">{$new.text}</textarea>
            </td> 
          </tr>
          
          <tr>
            <td>      <img src="../Image/news/{$new.photo_sm}" style="max-width:100px;" />
                      <br/> <input type="text" name="news[{$new.news_id}][name]" value="{$new.photo_name}" /> 
                      <br/> <input type="file" name="news[{$new.news_id}][new_img]"  />
            </td>
            <td> <input type="text" name="news[{$new.news_id}][seolink]" value="{$new.seolink}" /> 
            </td>
            <td> <textarea name="news[{$new.news_id}][video]">{$new.video}</textarea>
            </td>
          </tr>
          {/foreach}
        </tbody>
      </table>  
      <button>Сохранить</button>
     </form>  
     </div>
     
    {/if} 
  
    
    
